﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using IService.DataDLL;
using IService.Model;

namespace IService.Data.IManager
{
	public interface IUserDataManager
	{
		User GetUserByUserName(User user, string WhereClause);
		User GetUserByEmail(User user, string WhereClause);
		User GetUserById(User user);
		DataTable GetUserListPagin(Type infoType, PagingEntity pe);
		DataTable GetUserByType(Type infoType, string WhereClause, string Order);
		DataTable GetLatestUserList(Type infoType, int usernum);
		bool InsertUser(User user);
		bool UpdateUser(User user);
		bool DeleteUser(User user);
		bool DeleteUserByIds(Type infoType, string WhereClause);
		User Login(string username, string userpass);
		List<User> GetUserList(Type infoType);
		DataTable GetUserByYear(Type infoType, int year);
	}
}
